/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Help;

import java.awt.*;
import javax.swing.*;
import javax.swing.border.LineBorder;
import javax.swing.border.TitledBorder;

/**
 *
 * @author Ahmed Salem�
 */
public class Shortcut extends JFrame{
private JPanel pop,po,programer;
private JTextArea txt1,txt2;
protected JTextArea textArea = new JTextArea();
private JLabel l;

private JTabbedPane tabbedPane;
private String s2 = "Salem Pad";
private String s1 = "Support";
    private ImageIcon image;
    
public Shortcut() {  
    super("***** ShortCut ******");
    setLayout(new BorderLayout());
    
    JScrollPane scroller = new JScrollPane(textArea);    
    UIManager.put("TabbedPane.selected", Color.green);
    tabbedPane = new JTabbedPane();
    
    txt1 = new JTextArea();
    txt1.setFont(new Font("HEVEl",10,19));
    txt1.setBorder(new TitledBorder (new LineBorder (Color.red,3),"Support .."));
    txt1.setText("The program   Name is  (Salem Pad )\n************************************************\nYou Can easy Contct us \n "+"  Here The Addres  for support\n\n\n "+
            " Ahmed_Salem804@yahoo.com\n  Ahmed_bond804@yahoo.com\n  AhmedSalem804@Hotmail.com  \n "+" At The End\n\n "+"Thanks For any one who help me .......\n"+" if you can't contact of each one You Can Call software progrms\n\n    Ahmed El-Sayed Salem At" +
          "\n\n      "+    "Mobile Number :0182379073"+    "\n\n\n\n                                          Thanks\n                                         (NotPad-- ) ");
 
    pop = new JPanel();    
    pop.setBackground(Color.YELLOW);
    pop.add(txt1);
    pop.setBorder(new TitledBorder (new LineBorder (Color.black,5)," ShortCuts .."));
    image = new ImageIcon("icons/Ahmed.PNG");
    l= new JLabel(image);
    programer = new JPanel();
    programer.add(l,BorderLayout.CENTER);
    txt2 = new JTextArea();
    txt2.setText("\n\tName: Ahmed El-Sayed Salem"+"\n\tYear:Secound Year"+"\n\tSection : 5"+"\n\tID:060018"+"\n\tTelephone:0403506426"
            +"\n\tMobile:0182379073"+"\n\tE-MAIL:Ahmed_Salem804@yahoo.com");
    txt2.setFont(new Font("Times New Roman", 1, 18));
    txt2.setBorder(new TitledBorder (new LineBorder (Color.red,3),"Info  .."));
    programer.add(txt2,BorderLayout.WEST);
    programer.setBorder(new TitledBorder (new LineBorder (Color.GREEN,5),"Programer .."));
    
   textArea.setEditable(false);
   textArea.setFont(new Font("HEVEl",10,18));
   textArea.setBorder(new TitledBorder (new LineBorder (Color.blue,5)," ShortCuts on KeyBoard"));
   textArea.setText("******* Keyboard Shortcuts (these can be used in most Salem Pade  windows) *******\n\n"+
            "\tKey		Action\n"+"\t-----------------------------------------------------------------------------\n"+
           "\tF6		Open shortcut\n"+ "\tF5		Open Help\n"+"\tF4		Find Next\n"+"\tF3		Find\n"+"\tF2		Copy&Paste\n"+"\tF1		ToolPar Color\n"+
           "\n\n\t******* File Window Keyboard Shortcuts *******\n\n"+"\tKey		Action\n"+"\t-----------------------------------------------------------------------------\n"+
            "\tCtrl+N		New File\n"+"\tCtrl+O		Open(Load)File\n"+"\tCtrl+S		Save File\n"+"\tCtrl+P		Print File\n"+"\tCtrl+E		Exite Program"+
             "\n\n\t******* Edit  Window Keyboard Shortcuts *******\n\n"+"\tKey		Action\n"+"\t-----------------------------------------------------------------------------\n"+
             "\tCtrl+U		Undo Edit File\n"+"\tCtrl+R		Redo Edit File\n"+"\tCtrl+X		Cut selected Text\n"+"\tCtrl+C		Copy Selected Text\n"+
             "\tCtrl+V		Paste Selected Text\n"+"\tCtrl+A		Sellect All Text\n"+"\n\n\t******* View  Window Keyboard Shortcuts *******\n\n"+"\tKey		Action\n"
             +"\t-----------------------------------------------------------------------------\n\n"+"\tCtrl+T		View toolPar\n"+"\tCtrl+F10		View Max Size\n"+
             "\tCtrl+F9		View Mini Size\n"+"\n\n\t******* Color  Window Keyboard Shortcuts *******\n\n"+"\tKey		Action\n"+"\t-----------------------------------------------------------------------------\n\n"
             +"\tCtrl+B		Change BackFroundColor\n"+"\tCtrl+G		Change ForeGroundColor\n"+"\n\n\t******* Help Window Keyboard Shortcuts *******\n\n"+"\tKey		Action\n"
             +"\t-----------------------------------------------------------------------------\n\n"+"\tF5		About NotePad- -\n"+"\tF6		Support&ShortCut for NotePad- -\n"
             +"\n\n\t******* Some Important Notes *******\n\n"+"\t-----------------------------------------------------------------------------\n\n"+"     When Open File    if the File is bigger you shoud wait one Minutes\n"+"    When Select Font  you should click to button again to applay tour Font");
     
    tabbedPane.add(scroller,"ShortCuts");
    tabbedPane.addTab(s1,pop);
    tabbedPane.addTab("Programer",programer);
      
    getContentPane().add(tabbedPane, BorderLayout.CENTER);  
    setVisible(true);
    setSize(650,700);
    setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
   
} 


}
